<template>
	<view class="content">
		<view class="row clnr">
			<view class="col-24">
				<view class="row clnrkt">
					<view class="pdl-1 col-7 t_size_bold">
						问题行程
					</view>
				</view>
				<view class="clnrxq row">
					<view class="col-3">
						<view class="col-24 t_size_bold t_center ycsj">
							·
						</view>
						<view class="slh">
							
						</view>
						<view class="col-24 t_size_bold t_center ycqd">
							·
						</view>
						<view class="slh">
							
						</view>
						<view class="col-24 t_size_bold t_center yczd">
							·
						</view>
					</view>
					<view class="col-20">
						<view class="col-24 ycsj">
							<view class="row">
								<view class="col-17">
									约车 {{objResult.createTime}}
								</view>
								<view class="col-7 t_right status t_size_26">
									{{objResult.orderType == 1 ? objResult.orderTypeText : objResult.orderStateInsideText}}
								</view>
							</view>
						</view>
						<view class="col-24 ycqd">
							{{objResult.getOnPoint}}
						</view>
						<view class="col-24 yczd">
							{{objResult.getOffPoint}}
						</view>
					</view>
				</view>
			</view>
		</view>
		<view class="row clnr">
			<view class="col-24" v-for="(item,index) in objResult.serviceTypeList" :key="index">
				<view class="row clnrkt">
					<view class="pdl-1 col-7 t_size_bold">
						{{item.title}}
					</view>
				</view>
				<view class="clnrxq row">
					<view class="col-22 pdl-1 pdr-1 clnrxqjs">
						{{item.typeDescribe}}
					</view>
				</view>
			</view>
		</view>
		<view class="row clnr">
			<view class="col-24">
				<view class="row clnrkt">
					<view class="pdl-1 col-7 t_size_bold">
						自助受理范围
					</view>
				</view>
				<view class="clnrxq row">
					<view class="col-22 pdl-1 pdr-1 clnrxqjs">
						<view>
							1.当您全程未上车，却最终要支付车费的情况下，请您返回选择“未坐车需付费”进行投诉；
						</view>
						<view>
							2.账单中含有高速费、停车费、路桥费或其他费用，请返回“多收附加费”进行投诉；
						</view>
						<view>
							3.如果您无责取消了订单，但系统判断您需支付取消费用，请您返回选择“被收取消费”进行投诉；
						</view>
					</view>
				</view>
			</view>
		</view>
		<view class="btn row">
			<view class="col-11 pdr-1">
				<button type="primary" @click="$public.navBack()">选择其他问题</button>
			</view>
			<view class="col-11 pdl-1">
				<button type="primary" @click="$public.navTo('account/account_wtfk?typeId=' + objType.typeId + '&orderId=' + objType.orderId + '&title=' + objResult.serviceTypeList[0].title)">前往反馈</button>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return {
				objType: {
					typeId:0,
					orderId: 0
				},
				objResult :{
					createTime: "",
					getOffPoint: "",
					getOnPoint: "",
					orderStateInsideText: "",
					orderType: 1,
					orderTypeText: "",
					serviceTypeList: []
				}
			}
		},
		onLoad(option) {
			// console.log(option)
			this.objType.typeId = option.typeId;
			this.objType.orderId = option.orderId;
			this.load()
		},
		methods:{
			async load(){
				// console.log(this.objType)
				let res = await this.$api.request(this.$api.customer.servicetypeinfo,this.objType);
				if(res){
					this.objResult = res;
				}
			}
		}
	}
</script>

<style lang="scss">
	page{
		background-color: #f5f5f5;
	}
	.content{
		width: 92%;
		padding: 0 4%;
		padding-bottom: 120rpx;
	}
	.btn{
		width: 92%;
		padding: 10rpx 4%;
		height: 100rpx;
		line-height: 100rpx;
		position: fixed;
		left: 0;
		bottom: 0;
		background-color: #FFFFFF;
		button{
			height: 80rpx;
			line-height: 80rpx;
			margin-top: 10rpx;
			padding: 0;
			border-radius: 40rpx;
		}
		.pdr-1{
			button{
				background-color: #FFFFFF;
				border: 1px solid #6CBF30;
				color: #6CBF30;
			}
		}
		.pdl-1{
			button{
				background-color: #6CBF30;
			}
		}
	}
	.clnr{
		background-color: #FFFFFF;
		margin-top: 30rpx;
		border-radius: 10rpx;
		.clnrkt{
			height: 96rpx;
			line-height: 96rpx;
			color: #333333;
			border-bottom: 1px solid #ededed;
			.t_size_bold{
				overflow: hidden;
			}
			.col-15{
				color: #B3B3B3;
			}
		}
		.clnrxq{
			padding: 45rpx 0;
			.col-3{
				.slh{
					width: 1px;
					height: 40rpx;
					border-left: 1px dotted #999999;
					margin: 0 calc((100% - 1px) / 2);
				}
				.col-24{
					height: 15rpx;
					line-height: 15rpx;
					font-size: 45rpx;
				}
				.ycsj{
					color: #FFAE00;
				}
				.ycqd{
					color: #6CBF30;
				}
				.yczd{
					color: #07B0FF;
				}
			}
			.col-20{
				color: #333333;
				.ycsj{
					height: 30rpx;
					line-height: 15rpx;
					.status{
						color: #999999;
					}
				}
				.ycqd{
					height: 60rpx;
					line-height: 60rpx;
				}
				.yczd{
					height: 50rpx;
					line-height: 50rpx;
				}
			}
			.clnrxqjs{
				color: #999999;
			}
		}
	}
</style>
